Other Global Variables
The following global variables are available globally.
-
Key used for accessing a
Bool
as to whether the reroute occurced because a faster route was found.Declaration
Swift
public let RouteControllerDidFindFasterRouteKey = MBRouteControllerDidFindFasterRouteKey
-
Remaing distance on a motorway at which the
AlertLevel.high
AlertLevel
will be given. This overridesRouteControllerHighAlertInterval
only when the current step is a motorway. Default value is a half mile.Declaration
Swift
public var RouteControllerMotorwayHighAlertDistance: CLLocationDistance = 0.25 * milesToMeters
-
Remaing distance on a motorway at which the
AlertLevel.medium
AlertLevel
will be given. This overridesRouteControllerMediumAlertInterval
only when the current step is a motorway. Defauly value is 2 miles.Declaration
Swift
public var RouteControllerMotorwayMediumAlertDistance: CLLocationDistance = 2 * milesToMeters
-
:nodoc This is used internally for debugging metrics
Declaration
Swift
public var NavigationMetricsDebugLoggingEnabled = "MBNavigationMetricsDebugLoggingEnabled"
-
The minimum speed value before the user’s actual location can be considered over the snapped location.
Declaration
Swift
public var RouteControllerMinimumSpeedForLocationSnapping: CLLocationSpeed = 3
-
The minimum distance threshold used for giving a
Continue
type instructions.Declaration
Swift
public var RouteControllerMinimumDistanceForContinueInstruction: CLLocationDistance = 2_000
-
The minimum distance in the opposite direction of travel that triggers rerouting.
Declaration
Swift
public var RouteControllerMinimumBacktrackingDistanceForRerouting: CLLocationDistance = 50
-
Minimum number of consecutive location updates moving backwards before the user is rerouted.
Declaration
Swift
public var RouteControllerMinimumNumberLocationUpdatesBackwards = 3